package com.agiantii.ablog.handler.article.chain;

import com.agiantii.ablog.pojo.dto.PostDTO;

public abstract class BaseContentHandler implements ContentHandler {
    protected ContentHandler next;
    
    @Override
    public void setNext(ContentHandler next) {
        this.next = next;
    }
    
    protected boolean handleNext(PostDTO content) {
        if (next == null) {
            return true;
        }
        return next.handle(content);
    }
} 